﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Memorandum.Models
{
    public enum RemindType
    {
        Daily,
        Once
    }
   [Table("RemindItem")]
   public class RemindItem
    {

        private int id;

        public int ID
        {
            get { return id; }
            set { id = value; }
        }

        private DateTime time;
        [Required]
        public DateTime dateTime
        {
            get { return time=DateTime.Now; }
            set
            {
                time = value;
            }
        }


        private string title;
       [Required]
        public string Title
        {
            get { return title; }
            set { title = value; }
        }

        private string content;
        [Required]
        public string Content
        {
            get { return content; }
            set { content = value; }
        }

        private DateTime alarmTime;
        [Required]
        public DateTime AlarmTime
        {
            get { return alarmTime; }
            set { alarmTime = value; }
        }

        [Required]
        public RemindType type
        {
            set;
            get;
        }
    }
}
